package cn.tedu.cool.mapper;

import cn.tedu.cool.entity.Cate;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CateMapper {
    @Select("select * from cate")
    List<Cate> select();
    @Delete("delete from cate where id=#{id}")
    void deleteById(int id);
    @Insert("insert into cate values(null,'单品·花束','/img/花束.png')")
    void insert(Cate cate);
    @Insert("insert into cate values(null,'花艺·饰品','/img/花艺.png')")
    void insert1(Cate cate);
    @Insert("insert into cate values(null,'花守·放置瓶','/img/花守.png')")
    void insert2(Cate cate);
}
